<html>
    <head>
    <script src="https://imgcache.qq.com/qcloud/tcbjs/1.3.5/tcb.js"></script>
    <script>
        const app = tcb.init({
            env: "note-5gc4zhp2ec035b33" // 此处填入您的环境ID
        });
        alert("123");

        const auth = app.auth();

        const provider = auth.weixinAuthProvider({
            appid: "wxbe60a175326104fa",
            scope: "snsapi_userinfo"
        });
        provider.signInWithRedirect();
        provider.getRedirectResult().then((loginState) => {
            if (loginState) {
                // 登录成功
                alert("登录成功");
            }
        });

        // 执行某种登录之后...
        alert("dengl")
        const user = app.auth.currentUser;
        alert(user);
    </script>
    </head>
    <body>
    Hello Cloudbase!
    </body>
</html>